package com.dgw.utils;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Page<T> implements Serializable{
	
	private int currentPage;
	
	private long total;
	
	private int limit;
	
	private int startRow;
	
	private int endRow;
	
	private T list;

	public Page() {
		super();
	}

	public Page(int currentPage, long total, int limit, int startRow, int endRow, T list) {
		super();
		this.currentPage = currentPage;
		this.total = total;
		this.limit = limit;
		this.startRow = startRow;
		this.endRow = endRow;
		this.list = list;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public int getStartRow() {
		return startRow;
	}

	public void setStartRow(int startRow) {
		this.startRow = startRow;
	}

	public int getEndRow() {
		return endRow;
	}

	public void setEndRow(int endRow) {
		this.endRow = endRow;
	}

	public T getList() {
		return list;
	}

	public void setList(T list) {
		this.list = list;
	}
	
}
